<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <link rel="icon" href="<%= BASE_URL %>favicon.png">
    <title>杰狮自然资源一体化审批系统</title>
  </head>
  <body>
    <noscript>
      <strong>JavaScript脚本被设置为禁止执行了，请开启后重试</strong>
    </noscript>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  </body>
  <script>
    const baseSize = 20 // 基准大小
    function setRem() { // 设置 rem 函数
        const scale = document.documentElement.clientWidth / 1920 // 当前页面宽度相对于 1920 宽的缩放比例.
        document.documentElement.style.fontSize = baseSize * scale + 'px'
    } // 设置页面根节点字体大小
    setRem() // 初始化
    window.onresize = function() { // 改变窗口大小时重新设置 rem
        // setTimeout(setRem,301) // bug修复,适配时有300延迟的其它事件阻止适配
        setRem()
    }
  </script>
</html>
